using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Instedd.Labs.Forms.Library;

public partial class ShowStats : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            AggregatedSurveyTotals totals = SurveyManager.GetInstance().CalculateSurveyTotals();

            this.labelAllergic.Text = totals.TotalAllergicOccupantsToCiproOrDoxy.ToString();
            this.labelTotalCipro.Text = totals.TotalCiproDistributed.ToString();
            this.labelDeceased.Text = totals.TotalDeceased.ToString();
            this.labelTotalDoxy.Text = totals.TotalDoxyDistributed.ToString();
            this.labelTotalExposed.Text = totals.TotalExposed.ToString();
            this.labelTotalExposedAndIll.Text = totals.TotalExposedAndIll.ToString();
            this.labelTotalExposedNotIll.Text = totals.TotalExposedNotIll.ToString();
            this.labelTotalReceivedTreatment.Text = totals.TotalReceivedTreatment.ToString();
            this.labelTotalRecovered.Text = totals.TotalRecovered.ToString();
            this.labelTotalWell.Text = totals.TotalWell.ToString();
        }
    }
}
